import React from "react"

import { StyleSheet } from "react-native"
import { Button } from 'react-native-elements'

class Component extends React.Component {
  constructor (props) {
    super(props)
  }

  render() {
    let {
      isFollow = false
    } = this.props

    const type = isFollow ? "solid" : "outline"

    return (
      <Button
        titleStyle={styles.title}
        buttonStyle={styles.btn}
        type={type}
        title="关注"
      />
    )
  }
}

const styles = StyleSheet.create({
  btn: {
    borderRadius: 99,
    paddingHorizontal: 10,
    paddingVertical: 5,
  },
  title: {
    fontSize: 14
  }
})

export default Component
